package com.example.water.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.water.pojo.StRsvrR;
import com.example.water.service.StRsvrRService;
import com.example.water.mapper.StRsvrRMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lin
* @description 针对表【st_rsvr_r(水库信息表)】的数据库操作Service实现
* @createDate 2023-11-06 09:43:34
*/
@Service
public class StRsvrRServiceImpl extends ServiceImpl<StRsvrRMapper, StRsvrR>
    implements StRsvrRService{
    @Autowired
    private StRsvrRMapper stRsvrRMapper;

    @Override
    public List getStRsvrRPage(Integer pageSize,Integer currentPage) {
        currentPage=(currentPage-1)*pageSize;


        return stRsvrRMapper.getStRsvrRPage(pageSize,currentPage);

    }

    @Override
    public Integer getAllCount() {
        return stRsvrRMapper.getAllCount();
    }
}




